package com.xwltz.repository.impl;

import com.xwltz.repository.HomeRepository;
import org.springframework.stereotype.Repository;

@Repository
public class HomeRepositoryImpl implements HomeRepository {
    @Override
    public String doRepository(Double score) {
        if (score < 60) {
            return "不及格";
        } else if (score >= 60 && score < 80) {
            return "合格";
        } else if (score > 80) {
            return "优秀";
        } else {
            return "do something ...";
        }
    }
}
